home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Inside Mac Games Volume 3 #12
/
IMG 33 Dec 1995.iso
/
Shareware
/
Gossamer 2.0
/
Sample Objects
/
OCTAGON.PLG
< prev
next >
Wrap
Text File
|
1993-05-13
|
1KB
|
44 lines
# an octagonal cylinder visible from the outside, 1000x1000
octout 16 10
# vertices:
# X Y Z
# front face
-190 -460 -500 #VTX 0 # vertex 0
190 -460 -500 #VTX 1 # vertex 1
460 -190 -500 #VTX 2 # vertex 2
460 190 -500 #VTX 3 # vertex 3
190 460 -500 #VTX 4 # vertex 4
-190 460 -500 #VTX 5 # vertex 5
-460 190 -500 #VTX 6 # vertex 6
-460 -190 -500 #VTX 7 # vertex 7
# back face
-190 -460 500 #VTX 8 # vertex 8
190 -460 500 #VTX 9 # vertex 9
460 -190 500 #VTX 10 # vertex 10
460 190 500 #VTX 11 # vertex 11
190 460 500 #VTX 12 # vertex 12
-190 460 500 #VTX 13 # vertex 13
-460 190 500 #VTX 14 # vertex 14
-460 -190 500 #VTX 15 # vertex 15
# polygons: all cosine-lit, assorted colors
# color #verts vert1 vert2 ...
# these faces are derived from a shifted octagon
0x11ff 8 0 1 2 3 4 5 6 7 # front face: counterclockwise
0x12ff 8 15 14 13 12 11 10 9 8 # back face: clockwise
# these faces are facing us in the sketch, thus are CCW
0x13ff 4 5 4 12 13 # top
0x14ff 4 4 3 11 12
0x15ff 4 3 2 10 11 # right side
0x16ff 4 2 1 9 10
# these faces are away from us in the sketch, and thus CW
0x17ff 4 8 9 1 0 # bottom
0x18ff 4 15 8 0 7
0x19ff 4 14 15 7 6 # left side
0x1aff 4 13 14 6 5